package com.nebula.feignce.controller;

import com.nebula.feignce.client.selectfeignservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author: WangZhongLiang
 * @Date: 2019/9/2
 */
@RestController
@RequestMapping("/select")
public class selectcontroller {

    @Resource
    selectfeignservice selectfeignservice;

    @GetMapping("/ce")
    public String selectcontroller(){
        String user = selectfeignservice.user();
        return user;
    }

}
